/*
 ******************************* Copyright (c)*********************************\
 **
 **                 (c) Copyright 2015, Allen, china, shanghai
 **                          All Rights Reserved
 **
 **
 **
 **-----------------------------------版本信息------------------------------------
 ** 版    本: V0.1
 **
 **------------------------------------------------------------------------------
 ********************************End of Head************************************\
 */
package com.meitianhui.convenitenbuy.module.home.model.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.HashMap;
import java.util.List;

public class HomeMultiItemType implements MultiItemEntity {

    public static final int ITEM_BANNER = 0;     //banner
    public static final int ITEM_MEMBER_FUNCTION = 1;  // 会员相关权益
    public static final int ITEM_RECOMMEND_GOODS = 2;  // 推荐商品：包含限时和明日预告
    public static final int ITEM_GOOD_TYPE = 3;     // 商品类型及类别
    public static final int ITEM_GOOD_INFO = 4;     // 商品的信息：包括淘淘领、拼团、品牌、新品。
    public static final int ITEM_PULL_DATA = 5;     // 上啦加载更多
    public static final int ITEM_ZERO_BUY = 6;      // 0元购

    public int Type;
    public int mGoodInfoType;

    public BannerBean bannerBean;
    public RecommendGoods recommendGoods;
    public ZeroBuyImage zeroBuyImage;
    public List<HomeGoodsInfo.Convient> homeGoodInfo;
    public HashMap<String, String> mUrlMap;

    public HomeMultiItemType(final int type) {
        Type = type;
    }

    public HomeMultiItemType(final int type, BannerBean bannerBean) {
        Type = type;
        this.bannerBean = bannerBean;
    }

    public HomeMultiItemType(final int type, RecommendGoods recommendGoods) {
        Type = type;
        this.recommendGoods = recommendGoods;
    }

    public HomeMultiItemType(final int type, ZeroBuyImage zeroBuyImage) {
        Type = type;
        this.zeroBuyImage = zeroBuyImage;
    }

    public HomeMultiItemType(final int type, List<HomeGoodsInfo.Convient> homeGoodInfo,
                             HashMap<String, String> urlMap, int goodInfoType) {
        Type = type;
        mGoodInfoType = goodInfoType;
        this.homeGoodInfo = homeGoodInfo;
        this.mUrlMap = urlMap;
    }

    @Override
    public int getItemType() {
        return Type;
    }

}
